package com.ruge.core.serializer;

import com.alibaba.fastjson2.filter.NameFilter;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * description:
 * create time at 2022/6/9 16:51
 *
 * @author alice.ruge
 * @since 0.0.3
 */
@Slf4j
@NoArgsConstructor
public class PrivacySerializerNameFilter implements NameFilter {

    /**
     * 修改字段名
     *
     * @param object 当前类
     * @param name   字段名  key
     * @param value  字段值  value
     * @return 修改后的字段名
     */
    @Override
    public String process(Object object, String name, Object value) {
        return name;
    }
}
